package com.tang.jvm;

import org.openjdk.jol.info.ClassLayout;

/**
 * @author Tang
 * @classname JolExcemple
 * @description [  ]
 * @date 2021/6/3 23:00
 */
public class JolExcemple {
    public static void main(String[] args) {
        User user = new User();
        System.out.println(ClassLayout.parseInstance(user).toPrintable());
        System.out.println();
        System.out.println(ClassLayout.parseInstance(new Object()).toPrintable());
    }
}
class User {
    private String name;
    private Integer age;
    private boolean sex;
}